﻿@model IEnumerable<Article>
<ul class="ui-helper-reset" style="padding: 10px;">
    @foreach (var art in Model)
    {
        var article = new ArticleWrapper(art);
        if (!article.IsVisible(Context))
        {
            continue;
        }
        <li>
            <h3>@Publishing.PostLink(article)</h3>
            @Publishing.PostSummary(art)
            <div>
                <i style="color: #cccccc;">
                    @if ((bool)ViewData["ShowAuthor"])
                    {
                        @Html.Global("RES_POSTBY") @Html.UserLink(article.Author.UserName)
                                            }
                    @if ((bool)ViewData["ShowDate"])
                    {
                        @Html.Global(article.Posted)
                    }
                </i>
            </div>
        </li>   
    }
</ul>
